package br.ufmg.dcc.vod.remoteworkers.functional.simplesystem;
import br.ufmg.dcc.vod.remoteworkers.async.AsyncCommandProcessor;
import br.ufmg.dcc.vod.remoteworkers.async.QueueBasedAsyncRemoteProcessor;
import br.ufmg.dcc.vod.remoteworkers.registry.ServiceRegistry;



public class MainServer {

	public static void main(String[] args) throws Exception {
		ServiceRegistry<AsyncCommandProcessor> sr = new ServiceRegistry<AsyncCommandProcessor>(7888);
		QueueBasedAsyncRemoteProcessor processor = new QueueBasedAsyncRemoteProcessor(7888);
		sr.bindProcessor("Queue", processor);
		processor.start();
	}
	
}
